<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>发件详细填写</title>

<script src="jquery/js/jquery-1.8.2.js"></script>
<script src="jquery/js/jquery-ui-1.9.0.custom.min.js"></script>
<link rel="stylesheet" href="jquery/css/ui-lightness/jquery-ui-1.9.0.custom.min.css" />

<link href="css/shoppingCarAndMyCustom.css" type="text/css" rel="stylesheet" />
<link href="css/login.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/address.js"></script>

<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript" src="js/myCustonAndShoppingCar/shoppingCar.js"></script>

<script type="text/javascript" src="js/myCustonAndShoppingCar/bgiframe.js"></script>
<script type="text/javascript" src="js/myCustonAndShoppingCar/weebox.js"></script>
<link type="text/css" rel="stylesheet" href="css/xixiaoming/weebox.css" />

<script type="text/javascript">
	function getCookie(c_name) {
		if (document.cookie.length > 0) {
			c_start = document.cookie.indexOf(c_name + "=");
			if (c_start != -1) {
				c_start = c_start + c_name.length + 1;
				c_end = document.cookie.indexOf(";", c_start);
				if (c_end == -1)
					c_end = document.cookie.length;
				return unescape(document.cookie.substring(c_start,
						c_end));
			}
		}
		return "";
	}
</script>

</head>
<body onload="loadData('selProvance','selCity','selArea');setArea('${prov}','${city}','${area}')" style="text-align:center">
<jsp:include page="top.jsp"></jsp:include>
<div style="width:1000px;margin:20px auto 0 auto;">
<table><tr>
	<td style="vertical-align: top;width:435px;">
	<h2>第一步：</h2>
	<div style="text-align:left;width:417px;margin-top:-19px;font-family:'微软雅黑';float:left">
		    	<h3>支付的宝贝</h3>
		    	<table width="417px" id="goodsList">
		    	<%
					int tt = 0;
				%>
		    	<c:forEach items="${resList}" var="r">
			    	<tr>
						<td>
							<div style="height:1px;width:100%;background:#333;overflow:hidden;"></div>
							<font style="font-family:'黑体';font-weight:bold;">名称：</font>${r.theme}
						</td>
					</tr>
					<tr>
						<td>
							<font style="font-family:'黑体';font-weight:bold;">数量：</font>
							<input type="hidden" value="${r.number}" name="hiddenCustomid"/>
							<input type="text" value="1" style="width:25px;" onblur="checkNumber1(<%=tt%>)" id="<%=tt%>,buyCount" name="buyCount" />（套）
						</td>
					</tr>
					<tr>
						<td>
							<font style="font-family:'黑体';font-weight:bold;">价格：</font><font color="#f60">￥</font>
							<font id="<%=tt%>jiageid" color="#F60">${r.price}元</font>
							<input type="hidden" value="${r.price}" id="<%=tt++%>priceid" />
							<input type="hidden" value="${r.pic}" name="hiddenpicture"/>
							<input type="hidden" value="${r.detail}" name="hiddendetail"/>
						</td>
					</tr>
				</c:forEach>

				</table></div></td>
	<td style="vertical-align: top;width:413px;"><h2>第二步：</h2><div style="float:left;"><form name=alipayment action=alipayapi.jsp method=post target="_blank">
		    	<table align=center>
		    		<tr><td style="text-align:right">
		    			<font color="blue">*</font>写收件人：</td><td style="text-align:left"><input name="receiveName" type="text" id="username" onblur="checkUsername()" onfocus="usernameFocus()" value="${receiveName}" style="color:#8a8a8a" />
		    			<font id="usernameMsg" color="blue"></font>
		    		</td></tr>
		    		<tr><td style="text-align:right;">
		    			&nbsp;收件地址：</td><td style="text-align:left">
		    				<select  style="float: left;width:66px;" name="receiveProvince" id="selProvance" onchange="chgProvinces('selProvance','selCity','selArea')"></select>
							<select  style="margin-left: 10px; float: left;width:66px;" id="selCity" name="receiveCity" onchange="chgCitys('selCity','selArea')"></select>
							<select  id="selArea" name="area" style="margin-left: 10px; float: left;width:66px;"></select>
		    		</td></tr>
		    		<tr><td style="text-align:right">
		    			<font color="blue">*</font>详细地址：</td><td style="text-align:left;"><input name="address" value="${address}" type="text" id="address" onblur="checkkAddress()"/>
		    			<font id="addressMsg" color="blue"></font>
		    		</td></tr>
		    		<tr><td style="text-align:right">
		    			&nbsp;邮政编码：</td><td style="text-align:left;"><input name="postCode" type="text" id="mail" onblur="checkMail()" onfocus="mailFocus()" value="写6位邮政编码" style="color:#8a8a8a" />
		    			<font id="mailMsg" color="blue"></font>
		    		</td></tr>
		    		<tr><td style="text-align:right">
		    			&nbsp;电话号码：</td><td align="left">
		    			<input type="text" name="phone1" style="width:66px;" value="${zuoji1}" onblur="checkPhone()" id="specialplane1"/>-<input name="phone2" type="text" style="width:100px;" value="${zuoji2}" onblur="checkPhone()" id="specialplane2"/>
		    		<font id="specialplaneMsg" color="blue"></font></td></tr>
		    		<tr><td style="text-align:right">
		    			<font color="blue">*</font>手机号码：</td><td style="text-align:left;"><input name="mobilePhone" type="text" id="telephone" onblur="checkMobile()" value="${shouji}"/>
		    			<font id="telephoneMsg" color="blue"></font>
		    		</td></tr>
		    		<tr>
		    			<td style="text-align:right">
		    				订单备注：
		    			</td>
		    			<td style="text-align:left;">
		    				<input name="remark" type="text" id="remark" value="${remark}"/>
		    			</td>
		    		</tr>
		    	</table>
		    	<input type="hidden" value="${tradename}" name="hiddentname"/>
				<input type="hidden" value="${tid}" name="hiddentid"/>
				<input type="hidden" value="${totalprice}" name="totalprice"/>
		    	</form></div></td>
	<td style="vertical-align: top"><h2>第三步：</h2><div>
		    		<img src="img/shoppingCar_zhifubao.png" onclick="directPayFor()"/>
				</div></td>
</tr></table></div>




 <jsp:include page="bottom.jsp"></jsp:include>
</body>
</html>